import { Route, BrowserRouter as Router, Routes } from 'react-router-dom'
import './App.css'
import Header from './components/header'
import { CreatePage } from './pages/createPage'
import { ListPage } from './pages/listPage'

function App() {
  return (
    <Router>
      <Header />
      <Routes>
        <Route path='/create' element={<CreatePage />} />
        <Route path='/list' element={<ListPage />} />
      </Routes>
    </Router>
  )
}

export default App
